import router from './router';
import NProgress from 'nprogress' // progress bar
import '@/components/NProgress/nprogress.less' // progress bar custom style

router.beforeEach((to, from) => {
    console.log(to, from, 'router 守卫');
    NProgress.start() // start progress bar
    return true;
});

router.afterEach(() => {
    NProgress.done() // finish progress bar
});